<?php
return array(
	'searchColumns' => array(
		'worker_name',
		'cate_id' => array('dropDownList',Yii::app()->enum->options('goods.category'),
				'visible' => 'Yii::app()->adminUser->role == AdminUser::ROLE_OPERATOR',
			),
	),
	'dataColumns' => array(
		'id', 'worker_name',
		array(
			'name' => 'status',
			'value' => '$data->stateHandle->lookup()'
		),
		array(
			'header' => '操作',
			'class' => 'ButtonColumn',
			'stateHandles' => array(
				'stateHandle',
			),
		),
	),
	'operates' => array(
		CONSTANT::OP_CREATE => array(
			'href' => $controller->createUrl('edit'),
			'style' => OperatorButton::STYLE_BLUE,
			'visible' => Yii::app()->adminUser->role == AdminUser::ROLE_OPERATOR
		),
	),
	'_import' => array(
		array('*', 'actions.admin//*'),
	),
);
?>